package com.xishu.entity.hardware;

import com.xishu.annotation.valid.UniqueName;
import com.xishu.entity.AbstractEntity;
import com.xishu.entity.ShopItem;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

/**
 * 打印标签
 */
@Entity(name = "printer_label")
@Table(indexes = {@Index(columnList = "shopId")})
public class PrinterLabel extends ShopItem {
    @ApiModelProperty(value = "餐厅公司ID")
    private Long companyId;

    @ApiModelProperty(value = "分店ID")
    @UniqueName(union = true)
    private Long shopId;

    @ApiModelProperty(value = "标签")
    @UniqueName(union = true)
    private String printerLabel;

    @Transient
    @ApiModelProperty(value = "场景归属的分店")
    private String shopName_zh;

    @Transient
    @ApiModelProperty(value = "场景归属的分店")
    private String shopName_en;

    public String getShopName_zh() {
        return shopName_zh;
    }

    public void setShopName_zh(String shopName_zh) {
        this.shopName_zh = shopName_zh;
    }

    public String getShopName_en() {
        return shopName_en;
    }

    public void setShopName_en(String shopName_en) {
        this.shopName_en = shopName_en;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getPrinterLabel() {
        return printerLabel;
    }

    public void setPrinterLabel(String printerLabel) {
        this.printerLabel = printerLabel;
    }
}
